package com.fw.utils;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class Email_Authenticator extends Authenticator {
    String username;
    String password;
    public Email_Authenticator(){}
    public Email_Authenticator(String username, String password){
        this.username = username;
        this.password = password;
    }
    protected PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(username, password);
    }
}
